from django.conf.urls import url

from rest_api.views import *

urlpatterns = [
    url(r'^register/$', PostRegister.as_view()),
    url(r'^thirdLogin/$', PostQQThirdLogin.as_view()),
    url(r'^login/$', PostLogin.as_view()),
    url(r'^bindingPhone/$', BindingPhone.as_view()),
    url(r'^forgetPassword/$', PostForgetPassword.as_view()),
    url(r'^resetPassword/$', PostResetPassword.as_view()),
    url(r'^logout/$', PostLogout.as_view()),
    url(r'^loginCode/$', PostLoginByCode.as_view()),
    url(r'^saveUserInfo/$', PostUserInfo.as_view(), name='完善用户个人信息'),
    url(r'^sign/$', PostSignUp.as_view()),
    url(r'^getUserInfoDetail/$', GetUserInfoDetail.as_view()),
    url(r'^getMyConnectionRecord/$', GetMyConnectionRecord.as_view()),
    url(r'^postShare/(?P<affair>[0-9]*)/$', PostShare.as_view()),
    url(r'^getUserIsSign/$', GetUserIsSign.as_view()),
    url(r'^postAndGetUserBodyData/$', postAndGetUserBodyData.as_view()),
    url(r'^getUserBodyDataList/$', getUserBodyDataList.as_view()),
    url(r'^getUserBodyDataListAll/$', GetBodyDataDetailAll.as_view()),
    url(r'^getBodyDataDetail/(?P<PK>[0-9]*)/$', GetBodyDataDetail.as_view(), name='获取体脂称单次数据详情'),
    url(r'^user-bluetooth/(?P<KEY>.*)/$', UserBluetoothDetail.as_view(), name='重新绑定蓝牙信息'),
    url(r'^postIdcardInfo/$', PutIdcardInfo.as_view(), name='上传身份证信息'),
    url(r'^getUserCardInfo/$', getUserCardInfo.as_view(), name='获取身份证信息'),
    url(r'^postSuggestion/$', PostSuggesion.as_view(), name='用户意见反馈'),
    url(r'^getNewAffairStatus/$', GetNewAffairStatus.as_view(), name='获取是否有新帖子更新'),
    url(r'^getHomePageStatus/$', GetHomePageStatus.as_view(), name='获取是否有新评论/点赞'),
    url(r'^postUserVersion/$', PostUserVersion.as_view(), name='保存用户版本信息'),
    url(r'^postUserBodyDimension/$', PostUserBodyDimension.as_view(), name='保存用户用户身体维度信息'),
    url(r'^getUserBodyDemendionList/$', UserBodyDemendionList.as_view(), name='查询用户用户身体维度信息'),
    url(r'^userBodyDemendionDetail/(?P<pk>[0-9]*)/$', UserBodyDemendionDetail.as_view(), name='查询用户用户身体维度信息'),

]
